All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.DefaultCellEditor
java.lang.Object
|
+----com.sun.java.swing.DefaultCellEditor
- public class DefaultCellEditor
- extends Object
- implements TableCellEditor, TreeCellEditor, Serializable
The default editor for table and tree cells.
Warning: serialized objects of this class will not be compatible with
future swing releases. The current serialization support is appropriate
for short term storage or RMI between Swing1.0 applications. It will
not be possible to load serialized Swing1.0 objects with future releases
of Swing. The JDK1.2 release of Swing will be the compatibility
baseline for the serialized form of Swing objects.
-
changeEvent
-
-
clickCountToStart
-
-
delegate
-
-
editorComponent
-
-
listenerList
- Event listeners
-
DefaultCellEditor(JCheckBox)
-
-
DefaultCellEditor(JComboBox)
-
-
DefaultCellEditor(JTextField)
-
-
addCellEditorListener(CellEditorListener)
-
-
cancelCellEditing()
-
-
fireEditingCanceled()
-
-
fireEditingStopped()
-
-
getCellEditorValue()
-
-
getClickCountToStart()
- clickCountToStart controls the number of clicks required to start
editing if the event passed to isCellEditable() or startCellEditing() is
a MouseEvent.
-
getComponent()
-
-
getTableCellEditorComponent(JTable, Object, boolean, int, int)
-
-
getTreeCellEditorComponent(JTree, Object, boolean, boolean, boolean, int)
-
-
isCellEditable(EventObject)
-
-
removeCellEditorListener(CellEditorListener)
-
-
setClickCountToStart(int)
-
-
shouldSelectCell(EventObject)
-
-
stopCellEditing()
-
listenerList
protected EventListenerList listenerList
- Event listeners
changeEvent
protected transient ChangeEvent changeEvent
editorComponent
protected JComponent editorComponent
delegate
protected DefaultCellEditor. EditorDelegate delegate
clickCountToStart
protected int clickCountToStart
DefaultCellEditor
public DefaultCellEditor(JTextField x)
DefaultCellEditor
public DefaultCellEditor(JCheckBox x)
DefaultCellEditor
public DefaultCellEditor(JComboBox x)
getComponent
public Component getComponent()
setClickCountToStart
public void setClickCountToStart(int count)
getClickCountToStart
public int getClickCountToStart()
- clickCountToStart controls the number of clicks required to start
editing if the event passed to isCellEditable() or startCellEditing() is
a MouseEvent. For example, by default the clickCountToStart for
a JTextField is set to 2, so in a JTable the user will need to
double click to begin editing a cell.
getCellEditorValue
public Object getCellEditorValue()
isCellEditable
public boolean isCellEditable(EventObject anEvent)
shouldSelectCell
public boolean shouldSelectCell(EventObject anEvent)
stopCellEditing
public boolean stopCellEditing()
cancelCellEditing
public void cancelCellEditing()
addCellEditorListener
public void addCellEditorListener(CellEditorListener l)
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
fireEditingStopped
protected void fireEditingStopped()
fireEditingCanceled
protected void fireEditingCanceled()
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
All Packages Class Hierarchy This Package Previous Next Index